-
Notifications
You must be signed in to change notification settings - Fork 292
CP-53477 Update Host/Pool Data model to Support Dom0 SSH Control #6388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP-53477 Update Host/Pool Data model to Support Dom0 SSH Control #6388
Conversation
ec522fd
to
7a7f942
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments above.
7a7f942
to
64d5d93
Compare
64d5d93
to
6875825
Compare
…onfigure Add new host object fields: - ssh_enabled - ssh_enabled_timeout - ssh_expiry - console_idle_timeout Add new host/pool API to enable to set a temporary enabled SSH service timeout - set_ssh_enabled_timeout Add new host/pool API to enable to set console timeout - set_console_idle_timeout Signed-off-by: Lunfan Zhang <Lunfan.Zhang@cloud.com>
6875825
to
12e5680
Compare
~params: | ||
[ | ||
(Ref _host, "self", "The host") | ||
; (Int, "value", "The idle console timeout in seconds") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"console idle timeout"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are grammatically correct, I will keep this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, would be better to keep identical to the other places.
2f00a21
into
xapi-project:feature/configure-ssh-phase2
This PR introduces support for Dom0 SSH control, providing the following capabilities:
Query the SSH status.
Configure a temporary SSH enable timeout for a specific host or all hosts in the pool.
Configure the console idle timeout for a specific host or all hosts in the pool.
Changes
New Host Object Fields:
ssh_enabled
: Indicates whether SSH is enabled.ssh_enabled_timeout
: Specifies the timeout for temporary SSH enablement.ssh_expiry
: Tracks the expiration time for temporary SSH enablement.console_idle_timeout
: Configures the idle timeout for the console.New Host/Pool APIs (This PR only include the change of data model, the implementation of this API will be include in the next PR):
set_ssh_enabled_timeout
: Allows setting a temporary timeout for enabling the SSH service.set_console_idle_timeout
: Allows configuring the console idle timeout.